package com.xingkeduo.util.tool;

/**
 * @Description TODO
 * @Date 2019/3/20 14:21
 * @Created 情绪十分不稳定的Shadow
 */
public enum ResultStatus {

    SUCCESS(1,"成功"),
    FAIL(0,"失败");

    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
